import { getWorkStatementTemplateModule } from '@/api/basic'
import { ref } from 'vue'

// 加载
const loading = ref(false)

// 已经选择了的模版的id
const list = ref<Array<string>>([])

// 获取下拉选项方法
const getListFn = async (id: string) => {
  loading.value = true
  const res = await getWorkStatementTemplateModule(id)
  list.value = res.data.data.rows
  loading.value = false
}

export default {
  loading,
  list,
  getListFn,
}
